package com.bytedance.article.common.network;

import com.bytedance.retrofit2.Call;
import com.bytedance.retrofit2.client.Header;
import com.bytedance.retrofit2.mime.TypedOutput;
import com.bytedance.retrofit2.http.AddCommonParam;
import com.bytedance.retrofit2.http.Body;
import com.bytedance.retrofit2.http.FieldMap;
import com.bytedance.retrofit2.http.FormUrlEncoded;
import com.bytedance.retrofit2.http.GET;
import com.bytedance.retrofit2.http.HeaderList;
import com.bytedance.retrofit2.http.MaxLength;
import com.bytedance.retrofit2.http.POST;
import com.bytedance.retrofit2.http.Url;

import java.util.List;
import java.util.Map;

public interface ICommonApi {
    @GET
    Call<String> get(@MaxLength int arg1, @Url String arg2, @HeaderList List<Header> arg3, @AddCommonParam boolean arg4);

    @POST
    Call<String> postData(@MaxLength int arg1, @Url String arg2, @Body TypedOutput arg3, @HeaderList List<Header> arg4, @AddCommonParam boolean arg5);

    @FormUrlEncoded
    @POST
    Call<String> postForm(@MaxLength int arg1, @Url String arg2, @FieldMap(a = true) Map<String, String> arg3, @HeaderList List<Header> arg4, @AddCommonParam boolean arg5);
}

